//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.jim.core.packets;

import org.jim.core.ImStatus;
import org.jim.core.Status;

public class ExitLoginRespBody extends RespBody {
    private static final long serialVersionUID = 3680734574052114902L;
    private String userId;

    public ExitLoginRespBody() {
        super(Command.COMMAND_EXIT_LOGIN_RESP, (Status)null);
    }

    public ExitLoginRespBody(Integer code, String msg) {
        super(Command.COMMAND_EXIT_LOGIN_RESP, (Status)null);
        this.code = code;
        this.msg = msg;
    }

    public ExitLoginRespBody(Status status) {
        super(Command.COMMAND_EXIT_LOGIN_RESP, status);
    }

    public String getUserId() {
        return this.userId;
    }

    public ExitLoginRespBody setUserId(String userId) {
        this.userId = userId;
        return this;
    }

    public static ExitLoginRespBody success() {
        return new ExitLoginRespBody(ImStatus.C10024);
    }

    public static ExitLoginRespBody failed() {
        return new ExitLoginRespBody(ImStatus.C10025);
    }
}
